#include "reg52.h"

sbit D1 = P2^0;

void Timer0_Init()
{
	TMOD=0X01;
	TH0=0x4b;
	TL0=0xfe;
	TR0=1;
}

void main()
{
	unsigned int count  = 0;
	Timer0_Init();
	while(1)
	{
		if(TF0==1)
		{
			count++;
			TF0=0;
			TH0=0x4b;
	    TL0=0x8b;
			if(count==19)
			{
				D1 = !D1;
				count=0;
			}
		}
	}
}